package com.battery.system.domain;

import com.battery.common.annotation.Excel;
import com.battery.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 订单强制结束申请对象 ws_endOrder
 *
 * @author battery
 * @date 2021-03-12
 */
@Table(name = "ws_endOrder")
public class Endorder {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private String id;

    /**
     * 使用记录id
     */
    @Excel(name = "使用记录id")
    private String usedId;

    /**
     * 申请 合作商id
     */
    @Excel(name = "申请 合作商id")
    private String partnerId;


    /**
     * 商户id
     */
    @Excel(name = "商户id")
    private String merchantId;


    /**
     * 门店id
     */
    @Excel(name = "门店id")
    private String storeId;


    // 创建时间
    private Date createTime;


    /**
     * 审批时间
     */
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /**
     * 审批状态 0 待审批  1 通过 2 拒绝
     */
    @Excel(name = "审批状态 0 待审批  1 通过 2 拒绝")
    private Integer auditStatus;


    private String remark;

    /**
     * 开始租借时间
     */
    @Excel(name = "开始租借时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usingTime;


    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderNumber;


    private int channel;


    private int mode;


    private String reason;


    private String storeName;


    private Date hopeEndTime;

    public Date getHopeEndTime() {
        return hopeEndTime;
    }

    public void setHopeEndTime(Date hopeEndTime) {
        this.hopeEndTime = hopeEndTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }


    public int getChannel() {
        return channel;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUsedId(String usedId) {
        this.usedId = usedId;
    }

    public String getUsedId() {
        return usedId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setUsingTime(Date usingTime) {
        this.usingTime = usingTime;
    }

    public Date getUsingTime() {
        return usingTime;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("usedId", getUsedId())
                .append("partnerId", getPartnerId())
                .append("merchantId", getMerchantId())
                .append("storeId", getStoreId())
                .append("auditTime", getAuditTime())
                .append("auditStatus", getAuditStatus())
                .append("usingTime", getUsingTime())
                .append("orderNumber", getOrderNumber())
                .toString();
    }
}
